package org.worthydots.access.jpa.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
public class StationRoute implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int id;
	private String trainNumber;
	private int relativeOrder;
	private String stationCode;
	private int arrivalTime;
	private int departureTime;
	private int stopTime;

	public StationRoute() {
		
	}
	
	public StationRoute(String trainNumber, int relativeOrder, String stationCode, int arrivalTime, int departureTime, int stopTime) {
		super();
		this.trainNumber = trainNumber;
		this.setRelativeOrder(relativeOrder);
		this.stationCode = stationCode;
		this.arrivalTime = arrivalTime;
		this.departureTime = departureTime;
		this.stopTime = stopTime;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getId() {
		return id;
	}

	public String getTrainNumber() {
		return trainNumber;
	}

	public void setTrainNumber(String trainNumber) {
		this.trainNumber = trainNumber;
	}

	public void setRelativeOrder(int relativeOrder) {
		this.relativeOrder = relativeOrder;
	}

	public int getRelativeOrder() {
		return relativeOrder;
	}

	public String getStationCode() {
		return stationCode;
	}

	public void setStationCode(String stationCode) {
		this.stationCode = stationCode;
	}

	public int getArrivalTime() {
		return arrivalTime;
	}

	public void setArrivalTime(int arrivalTime) {
		this.arrivalTime = arrivalTime;
	}

	public int getDepartureTime() {
		return departureTime;
	}

	public void setDepartureTime(int departureTime) {
		this.departureTime = departureTime;
	}

	public int getStopTime() {
		return stopTime;
	}

	public void setStopTime(int stopTime) {
		this.stopTime = stopTime;
	}

	public String toString() {
		return id + " " + stationCode + " " + trainNumber + " " + arrivalTime + " " + departureTime + " " + stopTime;
	}
}
